package org.neuedu.chapter06_0622.demo02;

public class ScopeDemo01 {

    String name;

    public ScopeDemo01() {
    }

    public ScopeDemo01(String name) {
        this.name = name;
    }

    public void show1() {
        System.out.println(name);
    }

    public void show2() {
        String name = "hello";
        System.out.println(name);
    }

    public static void main(String[] args) {
        ScopeDemo01 s = new ScopeDemo01("tom");
        s.show1();
    }

}
